package com.qubuyer.business.good.activity

import android.os.Bundle
import com.qubuyer.base.activity.HostActivity
import com.qubuyer.business.good.viewmodel.SOViewModel
import com.qubuyer.core.app.BaseFragment

class SOActivity : HostActivity<SOViewModel>() {
    override fun contentFragment(): BaseFragment {
        return SOFragment()
    }

    override val viewModel: SOViewModel by injectVMByActivity()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        viewModel.buyType = intent.getIntExtra("buy_type", 0)
        viewModel.goodsId = intent.getIntExtra("goods_id", 0)
        viewModel.goodsNum = intent.getIntExtra("goods_num", 0)
        viewModel.itemId = intent.getIntExtra("item_id", 0)
    }
}